﻿using SqLiteEditor.Properties;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace SqLiteEditor.Helper
{
   public static class TStreamHelper
    {
        public static Stream OpenStream(string name)
        {
            Stream s = typeof(Resources).Assembly.GetManifestResourceStream("SqLiteEditor.Resources.Lua.Sql.xshd");
            if (s == null)
                throw new FileNotFoundException("The resource file '" + name + "' was not found.");
            return s;
        }
    }
}
